<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>

	<body>
		<style>
			.diamond > img {
				width: 300px;
				height: 150px;
				clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
				transition: 1s clip-path;
			}

			.diamond > img:hover {
				clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
			}
		</style>
		<div class="diamond">
			<img src="../assets/img/荷叶.jpg" alt="" />
		</div>
	</body>
</html>
